import cookie from 'cookiejs'
const ADMIN_TOKEN = 'admin_token'
const USERNAME = 'username'

export function setTokenStorage (token) {
  cookie.set(ADMIN_TOKEN, token)
}
export function getTokenStorage () {
  return cookie.get(ADMIN_TOKEN)
}
export function removeTokenStorage () {
  cookie.remove(ADMIN_TOKEN)
}
export function setUsernameStorage (token) {
  cookie.set(USERNAME, token)
}
export function getUsernameStorage () {
  return cookie.get(USERNAME)
}
export function removeUsernameStorage () {
  cookie.remove(USERNAME)
}
